<%@ page language="java" import="java.util.*,StudentScore.*" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改界面2</title>
</head>
<body>
<form name="postForm" action="UpdateView.jsp" method="post">
 	<%
    	String st =request.getParameter("stuno"); 	    	
    	int stuno = Integer.parseInt(st);
    	StudentDao sdao=new StudentDaoJDBC();
    	Student stu = sdao.findBystuno(stuno);
    	if (stu != null){
    %>
    <td>学号：<input type="text" id="stuno" name="stuno" value=<%=st%> readonly="true"/></td>
    	<table width="200" border="5" >
	  	<tr>	    	
	    	<td align=center>姓名</td>
	    	<td align=center>学号</td>
	    	<td align=center>性别</td>
	    	<td align=center>生日</td>
	  	</tr>
    
    	<tr>
    		<td align=center><%=stu.getName() %></td>
    		<td align=center><%=stu.getStuno() %></td>
    		<td align=center><%=stu.getSex() %></td>
    		<td align=center><%=stu.getBirthday()%></td>
    	</tr>
    <%
    	}else{
    		out.println("没找到"+"学号："+stuno+"的学生");	
    	}
     %>
     </table>
     <input type="submit" value="修改" />
</form>
</body>
</html>